<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
	name="viewport">
<title>登录跳转</title>
<%@ include file="/common/sale/include/common-base.jsp"%>
</head>

<body>
	<div class="container">
		<div class="rows" style="padding-top:10px;">
			<div class="col-md-4">&nbsp;</div>
			<div class="col-md-4 text-center" id="jump-msg">登录成功，页面正在跳转...</div>
			<div class="col-md-4">&nbsp;</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	$(function(){
		var userType = "${loginUser.userType}";
		if ("manager" == userType) {
			parent.window.location.href = "${ctx}/sendPage/sale/admin/index";
		} else if ("customer" == userType) {
			parent.window.location.href = "${ctx}/sendPage/sale/web/user/index";
		}else{
			$("#jump-msg").html("无权限继续访问！<a href='javascript:void(0);' onclick='parent.layer.closeAll()'>关闭</a>");
		}
	});
</script>
</html>